package com.czl.module_storehouse.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xubin
 */
public class StoreHouseBean {

    private String storehouseLocation;
    private int companyId;
    private int manageCompanyId;
    private String companyName;
    private String companyShortName;
    private String manageCompanyName;
    private String manageCompanyShortName;
    private String storehouseLocatName;
    private int storehouseId;
    private int storehouseLocatId;
    private String storehouseName;
    private ManageCompanyBean manageCompany;
    private int storehousePlies;
    private int locatPId;
    private int locatGrade;
    private int storageNum;
    private String roomId;
    private String latlng;
    private List<StoreHouseBean> childList;
    private List<RoomListBean> roomList;

    public List<RoomListBean> getRoomList() {
        return roomList;
    }

    public void setRoomList(List<RoomListBean> roomList) {
        this.roomList = roomList;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyShortName() {
        return companyShortName;
    }

    public void setCompanyShortName(String companyShortName) {
        this.companyShortName = companyShortName;
    }

    public int getStorageNum() {
        return storageNum;
    }

    public void setStorageNum(int storageNum) {
        this.storageNum = storageNum;
    }

    public int getLocatPId() {
        return locatPId;
    }

    public void setLocatPId(int locatPId) {
        this.locatPId = locatPId;
    }

    public int getLocatGrade() {
        return locatGrade;
    }

    public void setLocatGrade(int locatGrade) {
        this.locatGrade = locatGrade;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public List<StoreHouseBean> getChildList() {
        return childList;
    }

    public void setChildList(List<StoreHouseBean> childList) {
        this.childList = childList;
    }

    public String getStorehouseLocatName() {
        return storehouseLocatName;
    }

    public void setStorehouseLocatName(String storehouseLocatName) {
        this.storehouseLocatName = storehouseLocatName;
    }

    public int getStorehouseLocatId() {
        return storehouseLocatId;
    }

    public void setStorehouseLocatId(int storehouseLocatId) {
        this.storehouseLocatId = storehouseLocatId;
    }

    public String getStorehouseLocation() {
        return storehouseLocation;
    }

    public void setStorehouseLocation(String storehouseLocation) {
        this.storehouseLocation = storehouseLocation;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(int storehouseId) {
        this.storehouseId = storehouseId;
    }

    public String getStorehouseName() {
        return storehouseName;
    }

    public void setStorehouseName(String storehouseName) {
        this.storehouseName = storehouseName;
    }

    public ManageCompanyBean getManageCompany() {
        return manageCompany;
    }

    public void setManageCompany(ManageCompanyBean manageCompany) {
        this.manageCompany = manageCompany;
    }

    public int getStorehousePlies() {
        return storehousePlies;
    }

    public void setStorehousePlies(int storehousePlies) {
        this.storehousePlies = storehousePlies;
    }

    public String getLatlng() {
        return latlng;
    }

    public void setLatlng(String latlng) {
        this.latlng = latlng;
    }

    public int getManageCompanyId() {
        return manageCompanyId;
    }

    public void setManageCompanyId(int manageCompanyId) {
        this.manageCompanyId = manageCompanyId;
    }

    public String getManageCompanyName() {
        return manageCompanyName;
    }

    public void setManageCompanyName(String manageCompanyName) {
        this.manageCompanyName = manageCompanyName;
    }

    public String getManageCompanyShortName() {
        return manageCompanyShortName;
    }

    public void setManageCompanyShortName(String manageCompanyShortName) {
        this.manageCompanyShortName = manageCompanyShortName;
    }

    public static class ManageCompanyBean {
        /**
         * keeper : []
         * companyName : 光谷软件园
         */

        private String companyName;
        private List<?> keeper;

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public List<?> getKeeper() {
            return keeper;
        }

        public void setKeeper(List<?> keeper) {
            this.keeper = keeper;
        }
    }

    public static List<StoreHouseBean> getNewStoreHouseList(List<StoreHouseBean> data, int storehouseId) {
        List<StoreHouseBean> temp = new ArrayList<>();
        if (data == null || data.size() == 0) {
            return temp;
        }
        for (StoreHouseBean bean : data) {
            if (bean.getStorehouseId() != storehouseId) {
                temp.add(bean);
            }
        }
        return temp;
    }
}
